package tankgame;


import javax.swing.*;
import java.awt.*;

public class myTankgame01 extends JFrame {
    myPanel pa = null;

    public static void main(String[] args) {
        myTankgame01 myTankgame = new myTankgame01();


    }

    public myTankgame01() throws HeadlessException {
        pa = new myPanel();
        new Thread(pa).start();
        this.add(pa);
        this.setSize(1200,950);
        this.setVisible(true);
        this.addKeyListener(pa);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

    }
}
